import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("index_group_id", ["apartmentGroupId"], {})
@Index("index_media_id", ["mediaContentId"], {})
@Entity("apartment_group_media_content_layout", { schema: "cbox" })
export class ApartmentGroupMediaContentLayout {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "apartment_group_id", unsigned: true })
  apartmentGroupId: number;

  @Column("int", { name: "media_content_id", unsigned: true })
  mediaContentId: number;

  @Column("varchar", { name: "media_content_usage", length: 32 })
  mediaContentUsage: string;
}
